#from django 
from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
# from exam
from exam.models import Passage

urlpatterns = patterns('',
	#exam home 
	url(r'^$','exam.views.exams', name="all_exams"),
	url(r'^(\d+)/exam/$', 'exam.views.exam', name="describe_exam"),
	url(r'^(\d+)/inst/$', 'exam.views.instruction', name="instruction"),
	url(r'^(\d+)/ex/$', 'exam.views.exam1', name="describe_exam"),
	url(r'^score/(\d+)$','exam.views.ex', name="exam_score"),
	url(r'^xhr_test$','exam.views.xhr_test'),
	url(r'^finish','exam.views.finish'),
	url(r'^fin','exam.views.fin'),
	url(r'^home','exam.views.home'),
	url(r'^exam/success/$', direct_to_template, {'template': 'exam/score.html'},name="exam_success"),
	url(r'^listen/$', 'exam.views.home'),
	url(r'^li/$', 'exam.views.listen'),
	#listening tests
	url(r'^(\d+)/instl/$', 'exam.views.instruction_l', name="instructionl"),
	
)
	
